<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<!-- 5秒后将跳转到登陆页面 -->
<meta http-equiv="refresh" content='5; url=${pageContext.request.contextPath}/login/in'>


</head>

<body οnlοad="aaa()">
恭喜你！密码修改成功，<br>
<p><span>页面自动<a id="href" href="">跳转到登录页面</a></span><span>等待<b id="wait">5</b>秒</span></p>
<script type="text/javascript">                            (function() {
    var wait = document.getElementById('wait'), href = document.getElementById('href').href;
    var interval = setInterval(function() {
        var time = --wait.innerHTML;
        if (time <= 0) {

            clearInterval(interval);
            //location.href = href;
            alert("开始跳转提示");
        }
        ;
    }, 1000);
})();
</script>
</body>
</html>
